package com.heima.admin.controller.v1;

import com.heima.admin.service.AdminUserLoginService;
import com.heima.model.admin.dtos.AdminLoginDto;
import com.heima.model.common.dtos.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Date;


@RestController
@RequestMapping("/login")
public class LoginController {
    @Autowired
    private AdminUserLoginService adminUserLoginService;

    @PostMapping("/in")
    public ResponseResult login(@RequestBody AdminLoginDto adminLoginDto){
        return adminUserLoginService.login(adminLoginDto);
    }
}
